<fieldset>
    <legend>Información población</legend>
    <table border="1">
        <thead>

            <tr>
                <td>Tipo</td>
                <td>Número familias</td>
                <td>Número personas</td>
                <td>Editar</td>
                <td>Borrar</td>
            </tr>

        </thead>
        <tbody>
            <?php foreach ($populations as $poblacion): ?>

                <tr>
                    <td><?php echo $poblacion['PopulationPoll']['tipo']; ?></td>
                    <td><?php echo $poblacion['PopulationPoll']['numero_familias']; ?></td>
                    <td><?php echo $poblacion['PopulationPoll']['numero_personas']; ?></td>
                    <td><?php
            if ($usuario['User']['group_id'] != 5 && $usuario['User']['group_id'] != 6 && $visto_bueno['Poll']['visto_bueno'] != 'Si') {
                echo $ajax->link("Editar", array('controller' => 'PopulationPolls', "action" => "edit", $poblacion['PopulationPoll']['id'], $this->data['PopulationPoll']['poll_id']), array('update' => 'populations', 'indicator' => 'loading'));
            }
                ?></td>
                    <td><?php
                    if ($usuario['User']['group_id'] != 5 && $usuario['User']['group_id'] != 6  && $visto_bueno['Poll']['visto_bueno'] != 'Si') {
                        echo $ajax->link("Borrar", array('controller' => 'PopulationPolls', "action" => "delete", $poblacion['PopulationPoll']['id'], $this->data['PopulationPoll']['poll_id']), array('update' => 'populations', 'indicator' => 'loading'), '¿Desea Eliminar El Registro?');
                    }
                ?></td>
                </tr>

            <?php endforeach; ?>
        </tbody>
    </table>
    <?php
    if ($usuario['User']['group_id'] != 5 && $usuario['User']['group_id'] != 6  && $visto_bueno['Poll']['visto_bueno'] != 'Si') {
        echo $ajax->link("Adicionar", array('controller' => 'PopulationPolls', "action" => "add", $this->data['PopulationPoll']['poll_id']), array('update' => 'populations', 'indicator' => 'loading'));
    }
    ?>
</fieldset>
